﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using UnderMVCengine.Models;

namespace UnderMVCengine.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {

            return View();
        }

        //About Action
        public ActionResult About()
        {
            Person me = new Person()
            {
                Age = 22,
                Name = "Jeremy",
                City = "Oakland",
                State = "Callifornia"
            };
            return View(me);
        }
        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }
        public ActionResult Test()
        {
            ViewBag.Message = "Your Test page.";

            return View();
        }
    }
}